package com.service;

import com.dao.backManageDao;
import com.entity.appInfo;
import com.entity.backendUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class backManageServiceImpl implements backManageService{
    @Autowired
    backManageDao backManageDao;

    @Override
    public backendUser backManageLogin(String userCode, String userPassword) {
        return backManageDao.backManageLogin(userCode, userPassword);
    }

    @Override
    public List<appInfo> backManageShow(String softwareName, String flatForm, Integer categoryLevel1, Integer categoryLevel2, Integer categoryLevel3) {
        return backManageDao.backManageShow(softwareName, flatForm, categoryLevel1, categoryLevel2, categoryLevel3);
    }

    @Override
    public int latestVersion(Integer appId) {
        return backManageDao.latestVersion(appId);
    }

    @Override
    public int reviewAdoptOrFail(Integer status, Integer id) {
        return backManageDao.reviewAdoptOrFail(status, id);
    }
}
